<?php
//this code include in all template
$templateItem = $this->layout()->templateItem;
if($templateItem)
    $allBlocks = $templateItem->getAllBlocks();
else
    $allBlocks = array();
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Menu online. Ăn gì? Ở đâu.</title>
    <link rel="shortcut icon" href="http://coffeecreamthemes.com/themes/perfekta/site/images/favicon.png">

    <script>
        window.jQuery || document.write('<link href="/public/js/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">')
    </script>

    <!-- Bootstrap -->


    <!-- Custom CSS -->
    <link href="/public/css/style.css" rel="stylesheet">

    <!-- Slider Revolution CSS -->
    <link href="/public/css/jquery.revolution.css" rel="stylesheet">

    <!-- Owl Carousel stylesheet -->
    <link href="/public/css/owl.carousel.css" rel="stylesheet">

    <!-- Owl Carousel Default Theme -->
    <link href="/public/css/owl.theme.css" rel="stylesheet">

    <!-- Fancybox -->
    <link href="/public/css/jquery.fancybox.css" rel="stylesheet">

    <!-- Google Fonts -->
    <link href="/public/css/fonts.googleapis.com/css.css" rel="stylesheet">

    <!-- Font Awesome Icons -->
    <link href="/public/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
    <link href="/public/entypo/css/entypo.css" rel="stylesheet">

    <script>
        window.jQuery || document.write('<script src="/public/js/jquery-1.8.3.min.js"><\/script>');
        window.jQuery || document.write('<script src="/public/js/bootstrap/3.0.3/js/bootstrap.min.js"><\/script>');
    </script>



</head>
<body>

<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="row">
            <div class="col-md-3 col-sm-4 col-xsm-4" >
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html"><img src="/public/images/logo.png" alt="Perfekta. Multipurpose Site Theme." class="img-responsive" /></a>
            </div>
                <?php echo $this->partial('user_panel.php') ?>
                <?php echo $this->partial('top_nav.php') ?>
                <?php echo $this->partial('no_user_panel.php') ?>
        </div>



<!--        --><?php //echo $this->partial('no_user_panel.php') ?>

    </div><!--/.container -->
</div><!--/.navbar -->

<!-- Banner Start -->

<div class="fullwidthbanner-container">
    <?php
    echo  $this->partial("block_container.php", array("divId"=>"home_banner",
        "allBlocks"=>$allBlocks));
    ?>

</div>

<!-- Banner End -->

<?php echo $this->layout()->content ?>
<!-- Icons End -->

<?php echo $this->partial('footer.php') ?>
<!-- Footer Start -->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

<!--<script src="/public/js/jquery-1.8.3.min.js"></script>-->


<script src="/public/js/retina-1.1.0.min.js"></script>

<!-- Slider Revolution Plugins -->
<script src="/public/js/jquery.themepunch.plugins.min.js"></script>
<script src="/public/js/jquery.themepunch.revolution.js"></script>

<!-- Slider Revolution Settings -->
<!--<script src="/public/js/settings-revolution.js"></script>-->

<!-- Owl Carousel Plugin -->
<script src="/public/js/owl.carousel.js"></script>

<!-- Fancybox Plugin -->
<script src="/public/js/jquery.fancybox.js"></script>

<!-- Home Page Settings -->
<script src="/public/js/settings-home.js"></script>
<script src="/public/js/settings-general.js"></script>
</body>
</html>